<extend name="Public/base" />
<block name="wrapper">
	<table class="table">
		<div class="container">
	<div class="row">
		<div class="span12">
			<div class="row">
				<div class="span12">
					<table class="table table-striped table-hover">

						<thead>
						<tr><th colspan="7" ><h2><a href="{:U('type/add')}">分类添加</a></h2></th></tr>
							<tr>
								<th>id</th>
								<th>分类名</th>
								<th>父级id</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<foreach name="data" item="vo">
							<tr>
								<td>{$vo.id}</td>
								<td>{$vo['level']|str_repeat='--',###}{$vo.typename}</td>
								<td>{$vo.pid}</td>
								<td><a href="{:U('Type/jinyong',['id'=>$vo['id'],'childs'=>$vo['childs']])}">禁用</a>&nbsp;<a href="{:U('/Admin/Type/edit/id/'.$vo['id'])}">修改</a></td>
							</tr>

							</foreach> 
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
	</table>
</block>